import request from '@/utils/request'

// 查询分类占比列表
export function listPercentageinfo(query) {
  return request({
    url: '/feesys/percentageinfo/list',
    method: 'get',
    params: query
  })
}

// 查询分类占比详细
export function getPercentageinfo(id) {
  return request({
    url: '/feesys/percentageinfo/' + id,
    method: 'get'
  })
}

// 新增分类占比
export function addPercentageinfo(data) {
  return request({
    url: '/feesys/percentageinfo',
    method: 'post',
    data: data
  })
}

// 修改分类占比
export function updatePercentageinfo(data) {
  return request({
    url: '/feesys/percentageinfo',
    method: 'put',
    data: data
  })
}

// 删除分类占比
export function delPercentageinfo(id) {
  return request({
    url: '/feesys/percentageinfo/' + id,
    method: 'delete'
  })
}

// 导出分类占比
export function exportPercentageinfo(query) {
  return request({
    url: '/feesys/percentageinfo/export',
    method: 'get',
    params: query
  })
}